//
//  KLHotaldetailTableViewCell.m
//  KunLun
//
//  Created by Mac on 2017/11/28.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import "KLHotaldetailTableViewCell.h"

@interface KLHotaldetailTableViewCell()
@property(nonatomic, strong) UIImageView                     *iconImageView;
@property(nonatomic, strong) STLabel                            *titleLable;
@property(nonatomic, strong) STLabel                            *desLable;//评分和位置
@property(nonatomic, strong) STLabel                            *moneyLbale;//id

@end
@implementation KLHotaldetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self ==[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 110;
}
#pragma mark --subView
- (void)configSubView{
    
    self.backgroundColor = [UIColor whiteColor];
    
    self.iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, 90, 90)];
    self.iconImageView.image = [UIImage imageNamed:@"09"];
    [self addSubview:self.iconImageView];
    
    self.titleLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconImageView.right + 10, self.iconImageView.top + 5, UIScreenWidth - self.iconImageView.right - 20, 20)
                                                text:@"特惠吴川过大船方"
                                           textColor:KL_firstTextColor
                                                font:15
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.titleLable];
    
    self.desLable = [[STLabel alloc] initWithFrame:CGRectMake(self.iconImageView.right + 10, self.titleLable.bottom +3, UIScreenWidth - self.iconImageView.right - 20, 20)
                                              text:@"大床无创1.5 m"
                                         textColor:KL_secendTextColor
                                              font:14
                                       isSizetoFit:NO
                                     textAlignment:NSTextAlignmentLeft];
    [self addSubview:self.desLable];
    
    self.moneyLbale = [[STLabel alloc] initWithFrame:CGRectMake(self.iconImageView.right + 10, self.iconImageView.top + 5, 80, 20)
                                                text:@"$455"
                                           textColor:KL_redColor
                                                font:14
                                         isSizetoFit:NO
                                       textAlignment:NSTextAlignmentRight];
    self.moneyLbale.right = UIScreenWidth - 10;
    [self addSubview:self.moneyLbale];
    
    
    self.reserveButton = [[STButton alloc] initWithFrame:CGRectMake(0, 0, 70, 25)
                                                     title:@"立即预定"
                                                titleColor:[UIColor whiteColor]
                                                 titleFont:14
                                              cornerRadius:5
                                           backgroundColor:KL_BlueBackGroundColor
                                           backgroundImage:nil
                                                     image:nil];
    self.reserveButton.right = UIScreenWidth - 10;
    self.reserveButton.bottom = self.iconImageView.bottom;
    self.reserveButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
    [self addSubview:self.reserveButton];
}

@end
